from django.contrib import admin
from django.urls import path, include
from django.views.static import serve

from django.conf import settings

# from src.settings import dev  不要用这个作为配置文件
urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/v1/app01/', include('app01.urls')),
    path('api/v1/user/', include('user.urls')),
    path('api/v1/course/', include('course.urls')),
    path('api/v1/order/', include('order.urls')),
    # media /icon/default.png
    path('media/<path:path>', serve, {'document_root': settings.MEDIA_ROOT})
]
